package com.stylefeng.guns.modular.system.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author zyw
 * @since 2018-08-01
 */
@TableName("sys_news")
public class News extends Model<News> {

    private static final long serialVersionUID = 1L;

    private Integer id;
    @TableField("news_name")
    private String newsName;
    @TableField("news_desc")
    private String newsDesc;
    @TableField("news_date")
    private Date newsDate;
    @TableField("news_content")
    private String newsContent;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getNewsName() {
        return newsName;
    }

    public void setNewsName(String newsName) {
        this.newsName = newsName;
    }

    public String getNewsDesc() {
        return newsDesc;
    }

    public void setNewsDesc(String newsDesc) {
        this.newsDesc = newsDesc;
    }

    public Date getNewsDate() {
        return newsDate;
    }

    public void setNewsDate(Date newsDate) {
        this.newsDate = newsDate;
    }

    public String getNewsContent() {
        return newsContent;
    }

    public void setNewsContent(String newsContent) {
        this.newsContent = newsContent;
    }

    @Override
    protected Serializable pkVal() {
        return null;
    }

    @Override
    public String toString() {
        return "News{" +
        "id=" + id +
        ", newsName=" + newsName +
        ", newsDesc=" + newsDesc +
        ", newsDate=" + newsDate +
        ", newsContent=" + newsContent +
        "}";
    }
}
